﻿@model GPS.ENTITYS.CrudModelSHOSO

@{
    ViewBag.Title = "Chỉnh Sửa Loại Hồ Sơ";
}

<style type="text/css">
    .btn-file {
        position: relative;
        overflow: hidden;
    }

        .btn-file input[type=file] {
            position: absolute;
            top: 0;
            right: 0;
            min-width: 100%;
            min-height: 100%;
            font-size: 100px;
            text-align: right;
            filter: alpha(opacity=0);
            opacity: 0;
            background: red;
            cursor: inherit;
            display: block;
        }

    input[readonly] {
        background-color: white !important;
        cursor: text !important;
    }
</style>
<div class="modal-header fdb-panel-header-10">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h5 class="modal-title" id="myModalLabel">Thông Tin Hình Thức Cấp GPLX</h5>
</div>
@using (Html.BeginForm("Detail", "GPS_LoaiHoSo", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    @*<div id="tabs">*@
    @*<ul>
            <li><a href="#tabs-1">Hồ sơ phương tiện</a></li>
        </ul>*@
    <h3 class="text-center fdb-title-search-form">Chi tiết Loại Hồ Sơ</h3>
    <div id="tabs-1">
        @Html.Hidden("IsEdit", 0)
        <fieldset class="fs_body">
            <legend class="head_title">Thông tin Loại Hồ Sơ</legend>

            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Mã Loại Hồ Sơ:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_MA, new { @class = "form-control", @id = "HTGPLX_MA", @readonly = "readonly" })
                </div>
            </div>

            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Tên Loại Hồ Sơ:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_TEN, new { @class = "form-control" })
                </div>
            </div>

            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Nhóm Hồ Sơ:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_NDSH_MA, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Thời Hạn Trả Kết Quả:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_THOIHANTRAKQ, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Số VBPL:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_VBPL, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Hình Thức Cấp GPLX:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_HTGPLX_MA, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Yêu Cầu Đào Tạo Sát Hạch Lại:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_YCDTSHLAI, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Nội Dung Sát Hạch:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_NDSH_MA, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Điều Kiện:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_DIEUKIEN, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Mô Tả:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_MOTA, new { @class = "form-control" })
                </div>
            </div>
            <div class="row margin-top-05">
                <div class="col-md-2 control-label">
                    Trạng Thái:
                </div>
                <div class="col-md-4 control-txt">
                    @Html.DisplayFor(model => model.HOSO_ACTIVE, new { @class = "form-control" })
                </div>
            </div>
        </fieldset>
    </div>
}

<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

<script src="~/Scripts/datepicker.js"></script>
<script src="~/Scripts/jquery-ui-1.11.4.js"></script>
<script src="~/Scripts/jquery.maskedinput.js"></script>
<script src="~/Scripts/jquery.maskMoney.js"></script>
<script src="~/Scripts/jquery.number.js"></script>
<script src="~/Scripts/jquery.masknumber.js"></script>
<script src="~/Scripts/moment.js"></script>

<script type="text/javascript">

    // Voi jQuery 1.9 > thi chi validate gia tri trong active tab
    // Muon validate nhung gia tri trong cac tab khac nua thi dung jquery.validate 1.8.1 or 1.7


    // mask edit cho truong ngay thang (su dung jquery.maskedinput)


    function ToJavaScriptDate(value) {
        if (value != null) {
            var pattern = /Date\(([^)]+)\)/;
            var results = pattern.exec(value);
            var dt = new Date(parseFloat(results[1]));
            return dt.getDate() + "/" + (dt.getMonth() + 1) + "/" + dt.getFullYear();
        }
        return null;
    }
</script>
@Styles.Render("~/Content/themes/base/css")


